using UnityEngine;
using System;




public enum SAActionType
{
	ATTACK = 0,
	HAND = 6,
	FALL = 2,
	HURT = 1,
	DEFENCE = 10,
	CRY = 9,
	ANGER = 8,
	SIT = 5,
	STAND = 3,
	THROW = 12,
	HEAD = 11,
	MOVE = 4,
	HAPPY = 7,
	
	COUNT = 13
	
};

[ System.Serializable ]
public class SAAction
{

	[ System.Serializable ]
	public class SAActionFrame
	{
		public byte direction;
		public byte action;
		public short time;
		public byte frameCount;

		public int[] frames;

		public SAActionFrame()
		{

		}
	}

	public int actionID;

	public short actionNum;
	public byte actionU;


	public SAActionFrame[][] actions = new SAActionFrame[ (int)SAMapDirectionType.COUNT ][ ];


	public SAActionFrame getActionFrame( int d , int a )
	{
		if ( actions.Length > d )
		{
			if ( actions[ d ] != null && actions[ d ].Length > a )
			{
				return actions[ d ][ a ];
			}
		}

		return null;
	}


	public SAAction ()
	{



	}


}


